﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.WebApiModel.ParamModel
{
    /// <summary>
    ///  组织机构用户登录模型
    /// </summary>
    public class SysLoginModel
    {
        /// <summary>
        ///  登录名
        /// </summary>
        [DisplayName("登录名")]
        [Required]
        public string user_name { get; set; }
        /// <summary>
        ///  密码
        /// </summary>
        [DisplayName("密码")]
        [Required]
        public string user_password { get; set; }
    }
    public class SysXRloginModel
    {
        /// <summary>
        ///  登录标记
        /// </summary>
        [DisplayName("登录唯一标记")]
        [Required(ErrorMessage = "登录唯一标记必须要有值！")]
        public string token { get; set; }
    }
    /// <summary>
    ///  验证码修改密码模型
    /// </summary>
    public class ResetPasswordParam
    {
        /// <summary>
        ///  手机号
        /// </summary>
        [Required(ErrorMessage = "手机号码不能为空！")]
        [RegularExpression("^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$", ErrorMessage = "请输入正确的手机号！")]
        public string phone { get; set; }
        /// <summary>
        ///  验证码
        /// </summary>
        [Required(ErrorMessage = "验证码必填！")]
        public string code { get; set; }
        /// <summary>
        ///  密码
        /// </summary>
        [Required(ErrorMessage = "密码必填！")]
        public string pwd { get; set; }
    }
}
